<template>
  <div class="app-container">
    <iFrame :src="url"/>
<!--    <iFrame src="http://localhost:8081/api/doc.html"/>-->
  </div>
</template>

<script setup name="Swagger">
import { onMounted , ref} from "vue"
import { getConfigKey } from "@/api/system/config"
import iFrame from "@/components/iFrame"
const url = ref(import.meta.env.VITE_APP_PROXY_URL + '/doc.html')
// const url = import.meta.env.VITE_APP_PROXY_URL + '/swagger-ui/index.html'

onMounted( async () => {
  const res = await getConfigKey('url.swagger')
  url.value = import.meta.env.VITE_APP_PROXY_URL + res.data.value
  console.log(res)
})
</script>
